Platform Explorer / Nuxeo Platform 2021.61

Contribution org.nuxeo.ecm.platform.thumbnail.convert--converter

This contribution is part of XML component org.nuxeo.ecm.platform.thumbnail.convert inside nuxeo-thumbnail-2021.61.12.jar /OSGI-INF/thumbnail-convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Registration Order

10
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <converter class="org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter" name="pdfAndImageToThumbnail">
          <sourceMimeType>application/pdf</sourceMimeType>
          <sourceMimeType>image/jpeg</sourceMimeType>
          <sourceMimeType>image/png</sourceMimeType>
          <sourceMimeType>image/gif</sourceMimeType>
          <sourceMimeType>image/tiff</sourceMimeType>
          <destinationMimeType>image/png</destinationMimeType>
        </converter>
  • <converter name="anyToPdfToThumbnail">
          <conversionSteps>
            <subconverter>any2pdf</subconverter>
            <subconverter>pdfAndImageToThumbnail</subconverter>
          </conversionSteps>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter" name="anyToThumbnail">
          <destinationMimeType>image/png</destinationMimeType>
    
          <sourceMimeType>application/pdf</sourceMimeType>
          <sourceMimeType>image/jpeg</sourceMimeType>
          <sourceMimeType>image/png</sourceMimeType>
          <sourceMimeType>image/gif</sourceMimeType>
          <sourceMimeType>image/tiff</sourceMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
          <sourceMimeType>text/csv</sourceMimeType>
          <sourceMimeType>text/tsv</sourceMimeType>
          <sourceMimeType>text/partial</sourceMimeType>
    
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
          <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
          <sourceMimeType>application/vnd.ms-excel</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.presentationml.presentation
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.draw.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet-template
          </sourceMimeType>
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation-template
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.graphics
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.graphics-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="sofficeToPng">
          <destinationMimeType>image/png</destinationMimeType>
    
          <parameters>
            <parameter name="CommandLineName">soffice</parameter>
            <parameter name="format">png</parameter>
          </parameters>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
          <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
          <sourceMimeType>application/vnd.ms-excel</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.presentationml.presentation
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.draw.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet-template
          </sourceMimeType>
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation-template
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.graphics
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.graphics-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
        </converter>
  • <converter name="officeToThumbnail">
          <destinationMimeType>image/png</destinationMimeType>
          <conversionSteps>
            <subconverter>sofficeToPng</subconverter>
            <subconverter>pdfAndImageToThumbnail</subconverter>
          </conversionSteps>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">

    <converter class="org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter" name="pdfAndImageToThumbnail">
      <sourceMimeType>application/pdf</sourceMimeType>
      <sourceMimeType>image/jpeg</sourceMimeType>
      <sourceMimeType>image/png</sourceMimeType>
      <sourceMimeType>image/gif</sourceMimeType>
      <sourceMimeType>image/tiff</sourceMimeType>
      <destinationMimeType>image/png</destinationMimeType>
    </converter>

    <converter name="anyToPdfToThumbnail">
      <conversionSteps>
        <subconverter>any2pdf</subconverter>
        <subconverter>pdfAndImageToThumbnail</subconverter>
      </conversionSteps>
    </converter>

    <converter class="org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter" name="anyToThumbnail">
      <destinationMimeType>image/png</destinationMimeType>

      <sourceMimeType>application/pdf</sourceMimeType>
      <sourceMimeType>image/jpeg</sourceMimeType>
      <sourceMimeType>image/png</sourceMimeType>
      <sourceMimeType>image/gif</sourceMimeType>
      <sourceMimeType>image/tiff</sourceMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>
      <sourceMimeType>text/csv</sourceMimeType>
      <sourceMimeType>text/tsv</sourceMimeType>
      <sourceMimeType>text/partial</sourceMimeType>


      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>
      <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
      <sourceMimeType>application/vnd.ms-excel</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.presentationml.presentation
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.draw.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet-template
      </sourceMimeType>
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation-template
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.graphics
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.graphics-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="sofficeToPng">
      <destinationMimeType>image/png</destinationMimeType>

      <parameters>
        <parameter name="CommandLineName">soffice</parameter>
        <parameter name="format">png</parameter>
      </parameters>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>
      <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
      <sourceMimeType>application/vnd.ms-excel</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.presentationml.presentation
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.draw.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet-template
      </sourceMimeType>
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation-template
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.graphics
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.graphics-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>
    </converter>

    <converter name="officeToThumbnail">
      <destinationMimeType>image/png</destinationMimeType>
      <conversionSteps>
        <subconverter>sofficeToPng</subconverter>
        <subconverter>pdfAndImageToThumbnail</subconverter>
      </conversionSteps>
    </converter>

  </extension>